﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.waitingQueue {
    import flash.events.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class InitWaitingQueueCommand extends Command {

		[Inject]
        public var worldModel:WorldModel;
		[Inject]
        public var computerModel:ComputerModel;

        override public function execute():void{
            dispatch(new Event(EventConstants.CREATE_WAITING_QUEUE_ROOM));
            dispatch(new InfoEvent(EventConstants.LOAD_WAITING_PET, null, this.worldModel.waitingQueue));
        }

    }
}//package net.wooga.pets.controllers.waitingQueue 
